<?php
/**
 * Author: Administrator
 * Date: 2022/7/24 17:19
 */

namespace DesignPatterns\Behavioral\Mediator;


abstract class Colleague
{
    protected MediatorInterface $mediator;
    public function __construct(MediatorInterface $mediator)
    {
        $this->mediator = $mediator;
    }

    public function getMediator(): MediatorInterface
    {
        return $this->mediator;
    }
}